var myApp = angular.module('myApp', [])
    
.controller('firstController',function ($scope) {
    $scope.status = false;
    
    $scope.changeStatus = function (event) {
        //angular.element可以将DOM转换为jquery对象，angularjs提供了一些简单的jquery方法
        angular.element(event.target).html("切换状态为："+$scope.status);
        $scope.status = !$scope.status;
        // console.log(event.target);
    };

    $scope.defaultStyle = {
        color:'red',
        'margin-top':'50px'
    };

    $scope.src = 'https://img-ph-mirror.nosdn.127.net/Ove82eB-nUtuC-8mfX7EMQ==/6630543298653738028.jpg';
})
